import request from '@/utils/request';

// 获取合作伙伴列表
export const getPartnerList = (params) => {
  return request({
    url: '/CompanyWebsiteApi/SystemManage/Partner/GetPartnerList',
    method: 'GET',
    params
  });
}

// 添加合作伙伴信息
export const addPartner = (data) => {
  return request({
    url: '/CompanyWebsiteApi/SystemManage/Partner/AddPartner',
    method: 'POST',
    data
  });
}

// 更新合作伙伴信息
export const updatePartner = (data) => {
  return request({
    url: '/CompanyWebsiteApi/SystemManage/Partner/UpdatePartner',
    method: 'POST',
    data
  });
}

// 删除合作伙伴信息
export const deletePartner = (data) => {
  return request({
    url: '/CompanyWebsiteApi/SystemManage/Partner/DeletePartner',
    method: 'POST',
    data
  });
}

// 启用合作伙伴信息
export const enablePartner = (data) => {
  return request({
    url: '/CompanyWebsiteApi/SystemManage/Partner/EnabledPartner',
    method: 'POST',
    data
  });
}

// 禁用合作伙伴信息
export const disablePartner = (data) => {
  return request({
    url: '/CompanyWebsiteApi/SystemManage/Partner/DisabledPartner',
    method: 'POST',
    data
  });
}
